APP_ROOT = File.expand_path('../..', __FILE__)

CURRENT = File.join(APP_ROOT, 'current')

bind "unix://#{CURRENT.to_s}/catlog.sock"

pidfile "#{CURRENT.to_s}/catlog.pid"
state_path "#{CURRENT.to_s}/catlog.state"

environment 'production'
daemonize true

workers 1
threads 1, 4

rackup File.join(APP_ROOT, 'config.ru')